<?php
#Template for Member Login
$page = (isset($page)) ? $page : 'thirdlogin';
include "inc/local_data.php";
$form = (isset($using_real_env) && $using_real_env) ? $form : ((isset($data[$page])) ? $data[$page] : array());
if (empty($form)) exit;

?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.2//EN" "http://www.openmobilealliance.org/tech/DTD/xhtml-mobile12.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head>
        <title><?php echo $form['title'];?></title>
		<?php include('inc/embed_top.php');?>
    </head>
    <body mlang="<?php echo $form['lang'];?>">
        <div id="third" class="<?php echo $form['lang'];?> third" data-role="page" data-theme="f" >
            <div class="ptit"><?php echo $form['thirdlogin_title'];?><span class="back"><a href="<?php echo $form['button']['cancel']['link'];?>" rel="external"><?php echo $form['button']['cancel']['value'];?></a></span></div>
            <ul data-role="listview" data-theme="f">
            <?php
                if (!empty($form['thirdlogin_items'])) {
                    foreach((array)$form['thirdlogin_items'] as $key=>$val) {
                        $checked_str  = ($key==0) ? ' checked="checked" ' : NULL;
                        $tmp_href_url = (isset($val['urls'])) ? $val['urls'].$suffix_href_url : '#';
                        $tmp_name     = (isset($val['name'])) ? $val['name'] : NULL;
                        echo '<li><a href="'.$tmp_href_url.'" rel="external">'.$tmp_name.'</a></li>';
                    }
                }
                else {
                    echo '<li>'.$form['error_msg'].'</li>';
                }
            ?>
    		</ul>
    	</div>
		<?php include('inc/embed_bottom.php');?>
    </body>
</html>
